﻿using System;
using Microsoft.SharePoint;

namespace TPG.SharePoint.Workflow
{
    /// <summary>
    /// A control for editing tasks in bulk which can be hosted inside a page
    /// using the hosted control framework.
    /// </summary>
    public abstract class BulkTaskControl 
        : WorkflowDataControl<TaskItemCollection, BulkTaskMetaData>
    {
        #region [===== Properties =====]
        /// <summary>
        /// Gets the <see cref="SPContentType"/> of the tasks edited inside
        /// the control.
        /// </summary>
        /// <remarks>
        /// This field is used to allow the <see cref="TaskData" /> class to
        /// perform validation of the task data.
        /// </remarks>
        public SPContentType TaskContentType { get; internal set; }
        #endregion
    }
}
